# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=s6-linux-init-man-pages
pkgver=1.1.1.0.1
pkgrel=3
pkgdesc="Unofficial mdoc versions of the s6-linux-init documentation"
url="https://git.sr.ht/~flexibeast/s6-linux-init-man-pages"
arch="noarch"
license="ISC"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~flexibeast/s6-linux-init-man-pages/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no tests
install_if="${pkgname%-*-*}>=${pkgver%.*} docs"

package() {
	make DESTDIR="$pkgdir" install

	find "$pkgdir" -type f ! -name "*.gz" \
		-exec gzip -9 {} \;
}

sha512sums="
af4f7b649a623acdcb99f5be938a8e7cef2dd0834fa6f563e09695394b88e0ad4336ea1c8f34cff02130578c19fe0851a5667440273cf16f8adccf625799c2dc  s6-linux-init-man-pages-1.1.1.0.1.tar.gz
"
